aboutsummaryrefslogtreecommitdiffstats
path: root/src/routes/invoice/[id]/+layout.server.js
diff options
context:
space:
mode:
Diffstat (limited to 'src/routes/invoice/[id]/+layout.server.js')
-rw-r--r--src/routes/invoice/[id]/+layout.server.js6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/routes/invoice/[id]/+layout.server.js b/src/routes/invoice/[id]/+layout.server.js
new file mode 100644
index 00000000..e123c7d7
--- /dev/null
+++ b/src/routes/invoice/[id]/+layout.server.js
@@ -0,0 +1,6 @@
+import { get } from '$lib/utils';
+
+export async function load({ params }) {
+ let { id } = params;
+ return { id, invoice: await get(`/invoice?uuid=${id}`) };
+}